package com.dhcc.bpm.modules.scf.enumUtil;

public enum ScfCarbonEmissionsEnum {

    /**
     * 一吨废铝减少13.41吨碳排
     */
    ALUMINUM_RECYCLING(13.41),
    /**
     * 一吨废纸减少1.65吨碳排
     */
    PAPER_RECYCLING(1.65),
    /**
     * 一吨废钢减少1.6吨碳排
     */
    STEEL_RECYCLING(1.6),
    /**
     * 一吨废塑料减少2.5吨碳排
     */
    PLASTIC_RECYCLING(2.5),
    /**
     * 一吨废铜减少2.5吨碳排
     */
    COPPER_RECYCLING(2.5),
    /**
     * 一吨废电器电子减少约两吨碳排放
     */
    ELECTRICAL_EQUIPMENT_RECYCLING(2.0);

    private final double emissionFactor;

    ScfCarbonEmissionsEnum(double emissionFactor) {
        this.emissionFactor = emissionFactor;
    }

    /**
     * @return 获取枚举对应常量
     */
    public double getEmissionFactor() {
        return emissionFactor;
    }

    /**
     * @param amount 吨数
     * @return 获取品类对应每吨碳排放*吨数
     */
    public double getEmissionFactor(Double amount) {
        return emissionFactor * amount;
    }
}
